//
//  YWTroubleMissionModel.h
//  maintain
//
//  Created by 烟雨云渊 on 17/3/7.
//  Copyright © 2017年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YWMission.h"

@class YWReportTroubleModel;
@class YWHandler;

@interface YWTroubleMissionModel : NSObject
/**********下面字段做任务需要用到*************/
/**是否上传失败*/
@property (nonatomic, assign) BOOL uploadFail;
/**是否已读 完成后判断*/
@property (nonatomic, assign) BOOL read;
/**任务是否收起来*/
@property (nonatomic, assign) BOOL isOpen;
/**维保任务的某个设备类型的设备数组*/
@property (nonatomic, strong) NSArray *equipmentsArray;
/**做任务的图片数组*/
@property (nonatomic, strong) NSArray* totalImageNameArray;
/**做任务的时候填写的备注说明*/
@property (nonatomic, copy) NSString* psText;
/**********上面的字段做任务需要用到*************/

/* 报障单信息 */
@property (nonatomic, strong) YWReportTroubleModel * trouble;
/* 任务执行人 */
@property (nonatomic, strong) YWHandler * executor;
/* 任务创建人 */
@property (nonatomic, strong) YWHandler * creator;
/* 要求 */
@property (nonatomic, copy) NSString * demand;
/* 截止时间 */
@property (nonatomic, assign) NSTimeInterval cutoffTime;
/* 任务类型 */
@property (nonatomic, assign) YWTroubleMissionType missionType;
/* 拒绝理由 */
@property (nonatomic, copy) NSString * rejectReason;
/* 任务状态 */
@property (nonatomic, assign) YWTroubleMissionStatus troubleStatus;
/* 任务创建时间 */
@property (nonatomic, assign) NSTimeInterval createTime;
/* 任务更新时间 */
@property (nonatomic, assign) NSTimeInterval updateTime;
/* 数据状态 */
@property (nonatomic, assign) NSInteger status;
///**@的人集合,任务参与人*/
//@property (nonatomic, strong) NSArray *observers;
///**@的人的id串*/
//@property (nonatomic, copy) NSString *observerIds;
@end


//解析json用
@interface YWTroubleMissionModelApiJson : NSObject
/* 报障单信息 */
@property (nonatomic, strong) YWReportTroubleModel * trouble;
/* 任务执行人 */
@property (nonatomic, strong) YWHandler * executor;
/* 任务创建人 */
@property (nonatomic, strong) YWHandler * creator;
/* 要求 */
@property (nonatomic, copy) NSString * demand;
/* 截止时间 */
@property (nonatomic, assign) NSTimeInterval cutoffTime;
/* 任务类型 */
@property (nonatomic, assign) YWTroubleMissionType missionType;
/* 拒绝理由 */
@property (nonatomic, copy) NSString * rejectReason;
/* 任务状态 */
@property (nonatomic, assign) YWTroubleMissionStatus troubleStatus;
/* 任务创建时间 */
@property (nonatomic, assign) NSTimeInterval createTime;
/* 任务更新时间 */
@property (nonatomic, assign) NSTimeInterval updateTime;
/* 数据状态 */
@property (nonatomic, assign) NSInteger status;
///**@的人集合,任务参与人*/
//@property (nonatomic, strong) NSArray *observers;
///**@的人的id串*/
//@property (nonatomic, copy) NSString *observerIds;
@end

